#ifndef FIFO_H_
#define FIFO_H_

/*--------------------------------------------------------------------------*/

typedef struct fifoCDT * fifoADT;

/*--------------------------------------------------------------------------*/

int connFifo(char * read, char * write, fifoADT *fifo);

int bindFifo(char * read, char * write, fifoADT *fifo);

int acceptFifo(fifoADT fifo, fifoADT *new);

int rcvTFifo(fifoADT fifo, void *buf, int count, int timeout);

int sndTFifo(fifoADT fifo, void *buf, int count, int timeout);

int rcvFifo(fifoADT fifo, void *buf, int count);

int sndFifo(fifoADT fifo, void *buf, int count);

int closeFifo(fifoADT fifo);

/*--------------------------------------------------------------------------*/

#endif /*FIFO_H_*/
